/**
 * CS202 - Spring 2009 
 * Professor: Dr. Michael Peterson
 * Student: Deylo Woo (dwoo711@gmail.com)
 */
package battleship;

import java.util.*;
/**
 * Ship class to hold values for ships 
 *
 */
public class Ship {
    public String Title = "";
    public Integer HitPoints = 0;
    public Status ShipStatus;
    public LinkedList<Position> Positions = new LinkedList<Position>();
/**
 * Default constructor
 */
    public Ship() {
        Title = "some ship";
        HitPoints = 1;
        ShipStatus = Status.ok;
    }
/**
 * Constructor passing in parameter
 * @param title: name of the ship
 * @param hitPoints: hit points not really used
 * @param status: is Ok, Dead ...
 * @param positions: Collection of positions for that ship (cells in grind)
 */
    public Ship(String title, Integer hitPoints, Status status, LinkedList<Position> positions) {
        Title = title;
        HitPoints = hitPoints;
        ShipStatus = status;
        Positions = positions;
    }
    /**
     * Overrid toString to print the title.
     * @return
     */
    @Override
    public String  toString(){
        return Title;
    }
}
